package com.zuhaowan.games.controller;


import com.zuhaowan.games.PlayGame;
import com.zuhaowan.games.mapper.PlayGameMapper;
import com.zuhaowan.games.service.IPlayGameService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zhuxm
 * @since 2021-10-27
 */
@RestController
@RequestMapping("/games/")
public class PlayGameController {
    @Autowired
    private IPlayGameService playGameService;
    @RequestMapping("findGames")
    public List<PlayGame> findGames(){
       return   playGameService.findGames();
    }
}
